
public class Opdracht6_1 {

  public Opdracht6_1() {
    //1e
    int aantal = 0;
    int a = 0;
    boolean doorgaan = true;
    while (doorgaan) {
      if (a % 4 != 0 && a % 5 != 0) {
        System.out.print(a + ",");
        aantal++;
      }
      a++;
      if (aantal>=20){
      doorgaan=false;
      }
    }

    System.out.println("\n----");
    //2e
    for (int b = 0; b <= 20; b++) {
      if (b % 2 == 0) {
        System.out.print(Math.pow(2, b) + ",");
      } else {
        System.out.print(-Math.pow(2, b) + ",");
      }
    }
    System.out.println("\n----");
    //3e
  }

  public static void main(String[] args) {
    new Opdracht6_1();
  }
}
